//
//  ViewController.m
//  LinkDemo
//
//  Created by vchan on 2021/5/26.
//

#import "ViewController.h"
#import <os/lock.h>
#import "VCHPerson.h"
#import "VCHSubPerson.h"

@interface ViewController () {
    os_unfair_lock lock;
}

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSLog(@"2331333");
    lock = OS_UNFAIR_LOCK_INIT;
    
    os_unfair_lock_lock(&lock);
    //
    VCHSubPerson *p = VCHSubPerson.new;
    //
    os_unfair_lock_unlock(&lock);
    
}


@end
